package com.example.manu_facturer_orders.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.example.manu_facturer_orders.pojo.ManuFacturerVO;
import commons.Result;

import java.util.List;

/**
 * @author: tobed
 * @date: 2022/9/8
 * @time: 8:15
 */
public interface ManuFacturerService {


    /**
     * 厂商全查
     * @return
     */
    Page<ManuFacturerVO> listManuFacturer(String manufacturerCode, String manufacturerType, String manufacturerUseType, Page<ManuFacturerVO> page);


    /**
     * 自行注册厂商全查
     * @return
     */
    Page<ManuFacturerVO> listNoManuFacturer(String manufacturerCode, String manufacturerType, String manufacturerUseType, Page<ManuFacturerVO> page);

    /**
     * 自行注册厂商全查无分页
     * @return
     */
    List<ManuFacturerVO> listNo();

    /**
     * 真全查
     * @return
     */
    List<ManuFacturerVO> allList();

    /**
     * 停用/启用
     * @param id
     * @param manufacturerUseType
     * @return
     */
    Result closeManuFacturer(Integer id,Integer manufacturerUseType);

    /**
     * 签约厂商
     * @param contractStartDate
     * @param contractEndDate
     * @return
     */
    Result contractManuFacturer(String contractStartDate, String contractEndDate,Integer id);

    /**
     * 自行注册厂商处理
     * @param id
     * @param manufacturerDelMessage
     * @return
     */
    Result dealManuFacturer(Integer id, String manufacturerDelMessage,Integer manufacturerDelType);

    /**
     * 单查名称
     * @param id
     * @return
     */
    String getNameByPkid(Integer id);

    /**
     * 解约厂商
     * @param id
     * @return
     */
    Result jieyueFactur(Integer id);

}
